/**
 * @author 赵希奥
 * @date 2022/3/11 1:07
 * @gitHub https://github.com/CKXGZXA
 * @gitee https://gitee.com/ckxgzxa
 * @description:
 */
public class Client {
    public static void main(String[] args) {
        FruitFactory factory1,factory2,factory3;
        Fruit fruit1,fruit2,fruit3;
        factory1 = new AppleFactory();
        fruit1 = factory1.produceFruit();
        fruit1.say();
        factory2 = new BananaFactory();
        fruit2 = factory2.produceFruit();
        fruit2.say();
        factory3 = new OrangeFactory();
        fruit3 = factory3.produceFruit();
        fruit3.say();
    }
}
